package com.woniuxy.lab.woniu_lab.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author ChenZhongRan
 * @date 2022-11-10
 * @since 1.0
 */
@Data
public class UserInfoLoginForm {

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^[A-Za-z0-9!@#$%^&*()_+=\\[\\]{}|;',./:\"<>?]{3,16}$", message = "密码格式不正确")
    private String password;
}